//
//  ILVideoTableViewCell.m
//  ILife
//
//  Created by lanou on 15/11/2.
//  Copyright © 2015年 ILife. All rights reserved.
//

#import "ILVideoTableViewCell.h"
#import <UIImageView+WebCache.h>


@implementation ILVideoTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.coverImg = [[UIImageView alloc]initWithFrame:CGRectMake(5, 5, 70, 90)];
        self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(80, 40,SCREEN_WIDTH-80,30)];
        [self.contentView addSubview:_coverImg];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}


-(void)configureDataWithModel:(ILDailySelectModel*)model
{
    [self.coverImg sd_setImageWithURL:[NSURL URLWithString:model.coverForDetail]];
    self.titleLabel.text = model.title;
}





- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
